
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class ArenaRobotCfg : public ManualSingleton <ArenaRobotCfg>
{
	friend ManualSingleton <ArenaRobotCfg>;
public:
	ArenaRobotCfg();
	~ArenaRobotCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const ArenaRobotCfgInfo *GetArenaRobotCfgInfo(int32_t arenaId);
	const ArenaRobotCfgMap *GetArenaRobotCfgMap() { return &m_ArenaRobotCfgMap; }
private:
	ArenaRobotCfgMap m_ArenaRobotCfgMap;
};

#define  g_MakeArenaRobotCfgTable() (ArenaRobotCfg::Instance())
#define  g_GetArenaRobotCfgTable() (ArenaRobotCfg::GetInstance())
#define  g_DelArenaRobotCfgTable() (ArenaRobotCfg::Destroy())